package com.example.jvm.classloader;

/**
 * @author zhaoyunlong
 * @date 2021/12/6
 * @description   测试三种java的父类加载类  Bootstrap--》 Ext---》App  最后是自定义
 */
public class ClassLoaderClass_02 {

    public static void main(String[] args) {
        String bootClassPath = System.getProperty("sun.boot.class.path");
        System.out.println("bootClassPath:");
        System.out.println(bootClassPath.replaceAll(";", System.lineSeparator()));

        String extClassPath = System.getProperty("java.ext.dirs");
        System.lineSeparator();
        System.out.println("extClassPath:");
        System.out.println(extClassPath.replaceAll(";", System.lineSeparator()));

        String appClassPath = System.getProperty("java.class.path");
        System.lineSeparator();
        System.out.println("appClassPath:");
        System.out.println(appClassPath.replaceAll(";", System.lineSeparator()));
    }

}
